<project name="projbanque" default="build">
	<property name="source" value="src"/>
	<property name="classes" value="bin"/>
	<property name="jardir" value="src"/>
	<property name="jarfile" value="build/projbanque.jar"/>

	<target name="prepare">
		<mkdir dir="${classes}"/>
	</target>
	<target name="compile" depends="prepare">
		<echo message="Compilation en cours.."/>
		<javac srcdir="${source}" destdir="${classes}"/>
		<echo message="Compilation finie"/>
		
	</target>
	<target name="clean">
		<delete file="${classes}"/>
		<delete file="build"/>
		
		<echo message="Nettoyage"/>
	</target>

	<target name="build" depends="compile">
		<mkdir dir="build"/>
		<jar jarfile="${jarfile}" basedir="${jardir}"/>
	</target>

</project>
